package com.scs.application.modules.wm.controller;

import com.scs.application.core.mvc.controller.FlowController;
import com.scs.application.modules.sys.model.RestResult;
import com.scs.application.modules.wm.entity.OprtCheck;
import com.scs.application.modules.wm.entity.WorkOrder;
import com.scs.application.modules.wm.service.OprtCheckService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 */
@RestController
@RequestMapping("/wm/oprt_check")
public class OprtCheckController extends FlowController<OprtCheckService, OprtCheck> {

    /**
     * 转清点单
     *
     * @param workOrder
     */
    @PostMapping("/toOprtCheck")
    public RestResult toOprtCheck(@RequestBody WorkOrder workOrder) {
        return RestResult.ok("转换成功", service.toOprtCheck(workOrder));
    }
}
